package boardtiles;


import resources.Resource;

/**
 *
 * Michael Sobczak
 * mis98@pitt.edu
 * Card.java
 */

/**
 * This class implements the {@link Tile} interface
 *
 */
public class ResourceTile extends Tile {

    protected Resource resource;
    protected int productionNumber;

    public ResourceTile(Resource resource, int productionNumber, Tile[] neighbors) {
        this.resource = resource;
        this.productionNumber = productionNumber;
        this.neighbors = neighbors;
    }

    public ResourceTile(Resource resource, int productionNumber) {
        this.resource = resource;
        neighbors = null;
    }

    public int getProductionNumber() {
        return productionNumber;
    }

    public void setProductionNumber(int productionNumber) {
        this.productionNumber = productionNumber;
    }

    public Resource getResource() {
        return resource;
    }

}
